package com.uzai.console.dto.feign.uzaicms;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * 大淘客淘宝商品超级搜索参数
 * @author liuqi
 * @date 2021年08月26日 14:31
 */
@ApiModel("CMS淘宝商品列表超级查询参数")
public class CmsTbGoodsSuperSearchDto implements Serializable {

    private static final long serialVersionUID = -1825736362107094683L;

    @ApiModelProperty("搜索关键词,支持商品id或者商品标题查询")
    private String keyword;

    @ApiModelProperty("每页返回条数（请在10,20,50,100,120,200,500中选择一个数值返回）, 默认20")
    private Integer back;

    @ApiModelProperty("分页，用于实现类似分页抓取效果，来源于上次获取后的数据的min_id值，默认为1")
    private String min_id;

    @ApiModelProperty("商品券后价下限")
    private Integer minPrice;

    @ApiModelProperty("商品券后价上限")
    private Integer maxPrice;

    @ApiModelProperty("淘客佣金比率上限（百分比）")
    private Integer endTkRate;

    @ApiModelProperty("淘客佣金比率下限（百分比）")
    private Integer startTkRate;

    @ApiModelProperty("大淘客：0-综合排序，1-销量从高到低，2-销量从低到高，3-佣金比例从低到高，4-佣金比例从高到低，5-价格从高到低，6-价格从低到高")
    private Integer sort;

    @ApiModelProperty("每页数量")
    private Integer size;

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public Integer getBack() {
        if(back == null ){
            back = 20;
        }
        return back;
    }

    public void setBack(Integer back) {
        this.back = back;
    }

    public String getMin_id() {
        if(min_id == null){
            min_id = "1";
        }
        return min_id;
    }

    public void setMin_id(String min_id) {
        this.min_id = min_id;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getMinPrice() {
        return minPrice;
    }

    public void setMinPrice(Integer minPrice) {
        this.minPrice = minPrice;
    }

    public Integer getMaxPrice() {
        return maxPrice;
    }

    public void setMaxPrice(Integer maxPrice) {
        this.maxPrice = maxPrice;
    }

    public Integer getEndTkRate() {
        return endTkRate;
    }

    public void setEndTkRate(Integer endTkRate) {
        this.endTkRate = endTkRate;
    }

    public Integer getStartTkRate() {
        return startTkRate;
    }

    public void setStartTkRate(Integer startTkRate) {
        this.startTkRate = startTkRate;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }
}
